//
//  Person.h
//  LearnOCbase
//
//  Created by China Dragon on 2023/1/15.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Person : NSObject{
    int age;
    int no;
}

-(void)setAge:(int)newAge;
-(int)age;
-(void)setAge:(int)newAge andNo:(int)newNo;
-(void)setNo:(int)newNo;
-(int)no;


// 自己写一个构造方法
-(id)initWithAge:(int)newage andNo:(int)newno;

@end


NS_ASSUME_NONNULL_END
